﻿using Niti.OrderManage.Application.Contracts;
using Niti.OrderManage.DTO;
using Niti.OrderManage.ToolKits.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Niti.OrderManage.Order
{
   public interface ISupplierService
    {
        Task<ServiceResult<string>> InsertSupplierAsync(SupplierDto dto);

        Task<ServiceResult> DeleteSupplierAsync(int id);

        Task<ServiceResult<string>> UpdateSupplierAsync(int id, SupplierDto dto);
        Task<ServiceResult<SupplierDto>> GetSupplierAsync(int id);

        Task<ServiceResult<PagedList<SupplierDto>>> GetSupplierListByNameAsync(PagingInput input,string name="");
        Task<ServiceResult<PagedList<SupplierDto>>> GetSupplierListByCodeAsync(PagingInput input, string code = "");
    }
}
